Creating multi-line "Release Notes" popup

I need to create a menu option that will display a popup window displaying a listing of changes that have been made to a script.  One of the requirements is that it must be included in the main script and not using an external document file (as I had originally hoped to use).    Instead, I've created a function that would use a string variable to allow me to add text on as needed later.  However, it appears that the usual \n for new lines is not working.  Here is my current code:

void showReadMe(DBE xCanvas) {
    string sTitle = "SCP Baseline Comparison Tool";
    font(xCanvas, 1, HeadingsFont);
    setFontSettings(8, 5, 5, "Times", true, false);
    draw(xCanvas, 250, 25, sTitle);
    
    setFontSettings(2, TextFont, 10, "Times", false, false);
    string sContent = "1.0 - Original version used for first time\n";
    sContent = sContent "1.1 - Added styles for each level of heading\n";
    font(xCanvas, 3, TextFont);
    draw(xCanvas, 20, 50, sContent);
}

DB readMe = create("Readme", styleCentered|styleFixed);
DBE helpCnvs = canvas(readme, 800, 600, showReadMe);
show readMe;

When I run the code above, the string starting 1.1 appears directly after the word 'time' in the 1.0 string.  I would have hoped to be able to display the text using a single variable that is set up in a bunch of lines like I have above, but if this can't be done, how do I do this?  Do I have to use a multi-line text box?  Also, is it possible to have the text automatically break to a new line if the text is longer than that width of the window?

 

Chris


chrscote - Mon May 08 14:24:49 EDT 2017